home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / share / aclocal-1.5 / make.m4 < prev    next >
Encoding:
M4 Source File  |  2005-10-16  |  1.2 KB  |  41 lines

  1. # AM_MAKE_INCLUDE()
  2. # -----------------
  3. # Check to see how make treats includes.
  4. AC_DEFUN([AM_MAKE_INCLUDE],
  5. [am_make=${MAKE-make}
  6. cat > confinc << 'END'
  7. doit:
  8.     @echo done
  9. END
  10. # If we don't find an include directive, just comment out the code.
  11. AC_MSG_CHECKING([for style of include used by $am_make])
  12. am__include='#'
  13. am__quote=
  14. _am_result=none
  15. # First try GNU make style include.
  16. echo "include confinc" > confmf
  17. # We grep out `Entering directory' and `Leaving directory'
  18. # messages which can occur if `w' ends up in MAKEFLAGS.
  19. # In particular we don't look at `^make:' because GNU make might
  20. # be invoked under some other name (usually "gmake"), in which
  21. # case it prints its new name instead of `make'.
  22. if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
  23.    am__include=include
  24.    am__quote=
  25.    _am_result=GNU
  26. fi
  27. # Now try BSD make style include.
  28. if test "$am__include" = "#"; then
  29.    echo '.include "confinc"' > confmf
  30.    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  31.       am__include=.include
  32.       am__quote='"'
  33.       _am_result=BSD
  34.    fi
  35. fi
  36. AC_SUBST(am__include)
  37. AC_SUBST(am__quote)
  38. AC_MSG_RESULT($_am_result)
  39. rm -f confinc confmf
  40. ])
  41.